﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for PublicDefine
/// </summary>
public class PublicDefine
{
	public PublicDefine()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public static string SQLConnectString
    {
        get {
            ConnectionStringSettings settings = ConfigurationManager.ConnectionStrings["DBConnectionString"];
            string connectstring = settings.ConnectionString;
            return connectstring;
        }
    }

    public static int GetSelectRowIndex(GridViewCommandEventArgs e)
    {
        return Convert.ToInt32(e.CommandArgument);
    }

    public static string GlobalResource
    {
        get
        {
            return "AliceERP";
        }
    }
}

public enum Mode
{
    Empty,
    Edit,
    AddNew
}